<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  
  <body>
  <form method="get" action="@{Customers.search}">
  请输入客户姓名：<input type="text" name="searchText">
  <input type="submit" name="searchText">
  </form>
  <table>
			<tr>
				<th>客户号</th>
				<th>姓名</th>
				<th>电话</th>
				<th>地址</th>
				<th>更新</th>
				<th>删除</th>			
			</tr>
	    #{list items:customerList, as:'cu'}			    
		    <tr>
		    	<td>${cu.customerno}</td>
		    	<td>${cu.customername}</td>
		    	<td>${cu.telephone}</td>
		    	<td>${cu.address}</td>
		    	<td><a href="@{Customers.editCustomer(cu.id)}">update</a></td>
		    	<td><a href="@{Customers.deleteCustomer(cu.id)}">delete</a></td>
		    </tr>
		#{/list}

	</table>
	<a href="@{Application.index}">Back</a>
  </body>
</html>
